import { ref, watch } from "vue";

export function getpjz(num1, num2) {
    let sum = ref(0)
    const add = (num1, num2) => {
        sum.value = num1 + num2
    }
    watch([num1, num2], ([num1, num2]) => {
        add(num1, num2)
    })
    return sum
}